home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / S_T / T7G_130.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-10-27  |  4KB  |  135 lines

  1. @echo off
  2. cls
  3. Rem /  Batch File Installer for
  4. Rem /      The 7th Guest
  5. Rem /      version 1.30
  6. Rem /  (c) 1994 Virgin Interactive Entertainment
  7. Rem /  DR10.27
  8.  
  9. if exist t7g-130.exe goto NOERR
  10. goto ERR3
  11.  
  12. :NOERR
  13. if %1x==x goto TryDefault
  14. if exist %1\V.EXE goto DO_IT
  15. goto ERR
  16.  
  17. :TryDefault
  18. if exist c:\id\t7g\v.exe goto CONTINUE
  19. goto usage
  20.  
  21. :CONTINUE
  22. echo Detected default install directory. 
  23. echo.
  24. set T7GPTH=C:\ID\T7G
  25. if %T7GPTH%==C:\ID\T7G goto DO_IT2
  26. goto ERR2
  27.  
  28. :DO_IT
  29. set T7GPTH=%1
  30. if %T7GPTH%==%1 goto DO_IT2 
  31. goto ERR2
  32.  
  33. :DO_IT2
  34. echo One moment please...
  35. echo.
  36. for %%A in (V.EXE INSTALL.EXE) do del %T7GPTH%\%%A
  37. for %%A in (FAT.AD FILES.AL TANDY.DRV) do del %T7GPTH%\%%A
  38. for %%A in (SPHINX.FNT FAT.MT FAT.OPL) do del %T7GPTH%\%%A
  39. for %%A in (ADLIB ADLIBG ALGDIG MT32MPU PASDIG PASFM) do del %T7GPTH%\%%A.ADV
  40. for %%A in (PASOPL SBDIG SBPDIG SBP1FM SBP2FM SBFM) do del %T7GPTH%\%%A.ADV
  41. echo Loading update information...
  42. move t7g-130.exe %T7GPTH% > NUL
  43. move t7g-faq.txt %T7GPTH% > NUL
  44. echo Updating old files... 
  45. echo.
  46. %T7GPTH%\t7g-130 %T7GPTH% 
  47. del %T7GPTH%\t7g-130.exe
  48. pause
  49. if exist %T7GPTH%\t7g130.TXT goto SUCCESS
  50. goto ERROR
  51.  
  52. :ERR3
  53. echo.
  54. echo           ────────  T7G-130.EXE file not found  ─────────
  55. echo.
  56. echo           Please ensure that the install is run from the 
  57. echo           floppy disk drive.
  58. echo.
  59. echo           For example, you should be typing:
  60. echo           A:
  61. echo           INSTALL
  62. echo.
  63. echo.
  64. goto ERROR
  65.  
  66. :ERR2
  67. echo.
  68. echo           ───────  Not enough environment space   ───────
  69. echo                  to finish installation of update.
  70. echo.
  71. echo            Please increase the environment space before 
  72. echo            running the install. 
  73. echo.
  74. echo            For example, add: 
  75. echo            SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p /e:256
  76. echo            to you CONFIG.SYS file.
  77. echo.
  78. echo            Do NOT run the install from Windows.
  79. echo.
  80. echo.
  81. goto ERROR
  82.  
  83. :ERR
  84. echo. 
  85. echo      *** Could not find The 7th Guest files in: 
  86. echo          %1 
  87. echo          please check path.
  88.  
  89. :USAGE
  90. echo. 
  91. echo      To update your installation of The 7th Guest, type "INSTALL"
  92. echo      followed by a space and the name of the directory where the
  93. echo      T7G files were originally installed.
  94. echo. 
  95. echo      For example, if the update files are located on a disk in
  96. echo      drive A:, and T7G were originally installed to D:\GUEST, the 
  97. echo      commands would look like this:
  98. echo. 
  99. echo      A:
  100. echo      INSTALL D:\GUEST
  101. echo. 
  102. goto end
  103.  
  104. :ERROR
  105. echo           ─── Failed attempt to update The 7th Guest ────
  106. echo.
  107. echo                  For assistance, please contact 
  108. echo                Virgin Interactive Entertainment's
  109. echo                        Technical Support
  110. echo                         (714) 833-1999
  111. goto end
  112.  
  113. :SUCCESS
  114. cls
  115. echo      ───────── Updated "The 7th Guest" to version 1.30 ─────────
  116. echo.
  117. echo      Do NOT re-install The 7th Guest from the CD-ROM disc or else
  118. echo      the updated files will be overwritten.  You MAY however run
  119. echo      the INSTALL program from the hard drive to reconfigure your
  120. echo      hardware setup.
  121. echo.
  122. echo      This install also copied a file called T7G-FAQ.TXT to the
  123. echo      directory where The Seventh Guest is installed.  This is a
  124. echo      file that includes all known tips and tricks to get the
  125. echo      game "up and running."  To view this file just change to
  126. echo      the %T7GPTH% directory and type EDIT T7G-FAQ.TXT
  127. echo.
  128. echo      To run the game, just change to the %T7GPTH% directory and
  129. echo      type T7G
  130. echo.
  131. echo.
  132.  
  133. :END
  134. set T7GPTH=
  135. echo.